<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:replace="~{common/dialogCss :: dialogCss}"></head>
<body class="dialog">
	<div class="content">
		<div class="row">
			<div class="col-sm-12">
				<div class="portlet-body form">
					<form class="form-horizontal" id="job_add_form">
						<div class="form-body">
							<div class="form-group">
								<label class="col-sm-2 control-label">任务名:</label>
								<div class="col-sm-8">
									<input type="text" name="jobName" class="form-control input-sm col-sm-8" placeholder="任务名"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">任务组:</label>
								<div class="col-sm-8">
									<select class="form-control input-sm col-sm-8" name="jobGroup" placeholder="任务组">
										<option value="group1">任务组1</option>
										<option value="group2">任务组2</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">任务bean:</label>
								<div class="col-sm-8">
									<input type="text" name="beanClass" class="form-control input-sm col-sm-8" placeholder="任务bean"></input>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">方法名:</label>
								<div class="col-sm-8">
									<input type="text" name="methodName" class="form-control input-sm col-sm-8" placeholder="方法名"></input>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">表达式:</label>
								<div class="col-sm-8">
									<input type="text" name="cronExpression" class="form-control input-sm col-sm-8" placeholder="* * * * *" value="* * * * *" style="font-size:12px;font-family: Verdana;word-spacing:23px;"></input>
									<div style="padding-top:40px;">
						                <pre style="margin-bottom: 0px;"><code style="border:0;box-shadow:none;">*    *    *    *    *
|    |    |    |    +--- day of week (0 - 7) (Sunday=0 or 7)
|    |    |    +-------- month (1 - 12)
|    |    +------------- day of month (1 - 31)
|    +------------------ hour (0 - 23)
+----------------------- min (0 - 59)</code></pre>
					            	</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">任务描述:</label>
								<div class="col-sm-8">
									<textarea name="description" cols="30" rows="3" class="form-control input-sm col-sm-8"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 col-xs-12 control-label">状态:</label>
								<div class="col-sm-8">
									<label class="radio-inline"><input checked="checked" name="jobStatus" type="radio" value="1"/>启用</label>
									<label class="radio-inline"><input name="jobStatus" type="radio" value="0"/>禁用</label>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:replace="~{common/dialogJs :: dialogJs}">...</div>
	<script type="text/javascript">
		require(["./static/pages/scripts/system/job"], function(job){
			permission.initAddDialog();
		});
	</script>
</body>
</html>